package com.ruoyi.system.api.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.List;

@Data
public class MaterialInfojk extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 所属年级 */
    @Excel(name = "所属年级")
    private Integer grade;

    /** 所属科目 */
    @Excel(name = "所属科目")
    private Integer subject;

    /** 所属年份 */
    @Excel(name = "所属年份")
    private Integer age;

    /** 所属学期 */
    @Excel(name = "所属学期")
    private Integer semester;

    /** 句块内容 */
    @Excel(name = "句块内容")
    private String materialName;
    private String materialNamet;
    private String materialNametk;
    private String materialKey;
    private String url;

    /** 所属地域 */
    @Excel(name = "所属地域")
    private String region;

    @Excel(name = "版本")
    private String version;
    private String collection;

    /** 是否免费 */
    @Excel(name = "是否免费")
    private Integer isFree;

    /** 收费金额 */
    @Excel(name = "收费金额")
    private BigDecimal amount;

    @Excel(name = "分销比率")
    private BigDecimal discount;

    @Excel(name = "分销梯度比率")
    private BigDecimal discountBl;

    /** 上传用户ID */
    @Excel(name = "上传用户ID")
    private Long userId;

    private String appId;

    private String gradeName;
    private String subjectName;
    private String semesterName;
    private String order;
    private String orderType;
    private String noAdmin;
    private List<Long> ids;
    private String suffix;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("grade", getGrade())
                .append("subject", getSubject())
                .append("age", getAge())
                .append("semester", getSemester())
                .append("materialName", getMaterialName())
                .append("region", getRegion())
                .append("isFree", getIsFree())
                .append("amount", getAmount())
                .append("userId", getUserId())
                .append("createTime", getCreateTime())
                .toString();
    }
}
